package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    //自动装配
    @Autowired
    UserDao userDao;
    @Override
    public void save() {
        //System.out.println(1/0);
        userDao.save();
    }

    @Override
    public void update() {
        userDao.update();
    }

    @Override
    public void delete() {
        userDao.delete();
    }

    @Override
    public void findAll() {
        userDao.findAll();
    }
}
